<div class="col-lg-8 col-lg-offset-2">
<form  id="frm1" name="frm1" role="form" action="<?php echo $form_action; ?>" method="post">
	<div class="panel panel-default">
		<div class="panel-heading text-center"><strong><?php echo $subtitulo;?></strong></div>
		<div class="panel-body">
			
			<?php 
			if(isset($mensagem) and $mensagem != ''){
		    	echo '<div class="alert alert-warning text-center" role="alert">'.$mensagem.'</div>'; 
			}
    	
	    	if(validation_errors() != ''){
	    		echo '<div class="alert alert-danger" role="alert">';
	    		echo form_error('campoNome');
	    		echo form_error('campoEmail');
	    		echo form_error('campoSenha');
	    		echo form_error('campoConfSenha');
	    		echo form_error('campoNivel');
	    		echo '</div>';
	    	}
    	?>
			    	
	
	
		<div class="form-group <?php echo (form_error('campoNome') != '')? 'has-error':''; ?>">
			<label><span style="color: red;">*</span> Nome: </label> 
			<?php echo form_input($campoNome); ?> 
		</div>
		
		<div class="form-group <?php echo (form_error('campoEmail)') != '')? 'has-error':''; ?>">
			<label><span style="color: red;">*</span> E-mail: </label> 
			<?php echo form_input($campoEmail); ?>
		</div>
		
		<div class="form-group <?php echo (form_error('campoSenha') != '')? 'has-error':''; ?>">
			<label><span style="color: red;">*</span> Senha: </label>
			<?php echo form_input($campoSenha); ?>
		</div>
		
		<div class="form-group <?php echo (form_error('campoConfSenha') != '')? 'has-error':''; ?>">
			<label><span style="color: red;">*</span> Confirme a senha: </label>
			<?php echo form_input($campoConfSenha); ?>
		</div>
		
		<div class="form-group">
			<label>Nível</label> 
			<?php echo form_dropdown('campoNivel', $niveisDisponiveis, $nivelSelecionado, 'class="form-control"'); ?>		
		</div>

		

	
		</div>
		<div class="panel-footer text-center">
			<?php 
			echo $link_cancelar . "&nbsp;"; 
			echo $link_salvar;
			?>
		</div>
	</div>
	</form>
</div>
